package com.wyh;

public class DeductFactory {

    private Deduct deduct;

    public static Deduct buildDeduct(String name){
        switch (name){
           case  "用户": return new UserDeduct();
            case "经纪人": return new EmonetDeduct();
            case "主播":return new MasterDeduct();
        }
        return new UserDeduct();
    }
}
